import request from '@/request';
import type {editFormData , addFormData} from '../@types/index';

/**获取个人信息展示*/
export const getShowUserInfo = (params: { page: number, pageSize: number , title ?: string}) => {
    return request({
        url: '/api/v2/admin/getShowUserInfo',
        method: 'get',
        params
    })
} 

/**添加个人信息*/
export const addShowUserInfo = (data: addFormData ) => request({
    url: '/api/v2/admin/addShowUserInfo',
    method: 'post',
    data
}) 

/**删除个人信息*/
export const delShowUserInfo = (data: { ID: string }) => request({
    url: '/api/v2/admin/delShowUserInfo',
    method: 'post',
    data
})

/**更新个人信息*/
export const updateShowUserInfo = (data: editFormData) => request({
    url: '/api/v2/admin/updateShowUserInfo',
    method: 'post',
    data
})